package club.adger.system.controller;

import club.adger.server.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: Adger
 * @Date: 2020/07/22/20:31
 * @RestController 像Restul 风格API的请求
 */
@RestController
public class TestController {
    @Resource
    private TestService testService;

    @RequestMapping("/test")
    public List<club.adger.server.entity.Test> test(){
        return testService.list();
    }
}
